package com.zlp.stack;

/**
 * 演示堆内存
 */
public class HeadDemo_1 {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("1...........");
        Thread.sleep(30000);
        byte[] arr = new byte[1024 * 1024 * 10];
        System.out.println("2...........");
        Thread.sleep(30000);
        arr = null;
        System.gc();
        System.out.println("3...........");
        Thread.sleep(100000);
    }
}
